<template>
	<div>
		<el-input v-model="str">
			<template v-slot:append>
				<el-button type="primary" @click="decode">解码</el-button>
			</template>
		</el-input>
		<div>{{result}}</div>
	</div>
</template>

<script setup>
	import {
		ref
	} from 'vue'

	let str = ref(''),
		result = ref('')
	const decode = () => {
		const s = str.value.replaceAll('\\x', '%')
		console.log(s)
		result.value = decodeURIComponent(s)
	}
</script>

<style>
</style>
